package com.yq.emp.service;

import com.yq.emp.mapper.EmpMapper;
import com.yq.emp.model.Emp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    EmpMapper empMapper;
    @Override
    public List<Emp> getAllEmp() {
        return empMapper.findAllEmp();
    }
}
